package com.xyz.cinema.entity;

import java.util.Date;

/**
 * @author ��
 * @Date 2020��9��9��
 */
public class MovieShow {
	private int id;
	private String name;
	private Date onShelfDate;
	private Date offShelfDate;
	private double ticketPrice;
	private String img;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getOnShelfDate() {
		return onShelfDate;
	}
	public void setOnShelfDate(Date onShelfDate) {
		this.onShelfDate = onShelfDate;
	}
	public Date getOffShelfDate() {
		return offShelfDate;
	}
	public void setOffShelfDate(Date offShelfDate) {
		this.offShelfDate = offShelfDate;
	}
	public double getTicketPrice() {
		return ticketPrice;
	}
	public void setTicketPrice(double ticketPrice) {
		this.ticketPrice = ticketPrice;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public MovieShow(Movie movie, String img) {
		super();
		this.id = movie.getId();
		this.name = movie.getName();
		this.onShelfDate = movie.getOnShelfDate();
		this.offShelfDate = movie.getOffShelfDate();
		this.ticketPrice = movie.getTicketPrice();
		this.img = img;
	}
	public MovieShow() {
	}
	@Override
	public String toString() {
		return "MovieShow [id=" + id + ", name=" + name + ", onShelfDate=" + onShelfDate + ", offShelfDate="
				+ offShelfDate + ", ticketPrice=" + ticketPrice + ", img=" + img + "]";
	}
	
}
